Skip to content

refactor: use GITHUB_HTTP_TIMEOUT_SECONDS at the three remaining timeout=15 sites - #942

Closed
ebios-star wants to merge 1 commit into
entrius:testfrom
ebios-star:refactor/use-github-http-timeout-constant
Closed

refactor: use GITHUB_HTTP_TIMEOUT_SECONDS at the three remaining timeout=15 sites#942
ebios-star wants to merge 1 commit into
entrius:testfrom
ebios-star:refactor/use-github-http-timeout-constant

Conversation

@ebios-star

Copy link
Copy Markdown
Contributor

`gittensor/utils/github_api_tools.py` already imports `GITHUB_HTTP_TIMEOUT_SECONDS` from `gittensor.constants` and uses it for the `/user` request (line 242). Three other GitHub HTTP calls in the same file (`get_merge_base_sha`, `get_pull_request_file_changes`, `check_github_issue_closed`) still passed the literal `15`. Switch them to the constant so a future timeout tweak doesn't need to be applied in four places.

Same shape as the merged #455 (use shared constant). 3-line diff, no behaviour change, no new imports.

…out=15 sites

`gittensor/utils/github_api_tools.py` already imports
`GITHUB_HTTP_TIMEOUT_SECONDS` from `gittensor.constants` and uses it for
the `/user` request. Three other GitHub HTTP calls in the same file
(`get_merge_base_sha`, `get_pull_request_file_changes`,
`check_github_issue_closed`) still passed the literal `15`. Switch them
to the constant so a future timeout tweak doesn't need to be applied
in four places.
@ebios-star

Copy link
Copy Markdown
Contributor Author

Hi @anderdc — friendly review request whenever you have a moment. 3-line mechanical diff (constant already imported, three live call sites). No tests added, no new comments. Same shape as the merged #455.

@xiao-xiao-mao xiao-xiao-mao Bot added the refactor Code restructuring without behavior change label May 3, 2026
@anderdc anderdc mentioned this pull request May 5, 2026
8 tasks
@anderdc

anderdc commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Closing — please consolidate into #917.

@anderdc anderdc closed this May 5, 2026
@ebios-star

Copy link
Copy Markdown
Contributor Author

Consolidated into #955 per @anderdc's request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code restructuring without behavior change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants